package com.wb.common.core.domain;

import lombok.Data;

import java.io.Serializable;

/**
 * 慧尔股份
 *
 * @Description TODO
 * @Author zhangxl
 * @Date 2025/7/20 11:35
 */
@Data
public class Result<T> implements Serializable {
    private int success;
    private String msg;
    private T data;

    public static <T> Result<T> success(String msg ,T data) {
        Result<T> result = new Result<T>();
        result.setSuccess(200);
        result.setMsg(msg);
        result.setData(data);
        return result;
    }
}
